﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="ProductDetail.aspx.cs" Inherits="Pages_ProductDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
    <!-- facebook -->
    <div id="productdetail">
        <div class="header-product">
            <div class="header-product-left">
            </div>
            <div class="header-product-center">
                <asp:Label ID="lblName" runat="server" />
            </div>
            <div class="header-product-right">
            </div>
        </div>
        <asp:DataList ID="dlChiTietSanPham" runat="server" OnItemCommand="dlChiTietSanPham_ItemCommand">
            <ItemTemplate>
                <div id="content-product-detail">
                    <div class="img-product-detail">
                        <asp:Image ID="img1" ImageUrl='<%#Eval("Image") %>' Width="200px" Height="140px"
                            runat="server" />
                        <div class="pnlike">
                            <div class="fb-like" data-href="<%#urllike(Eval("Id").ToString()) %>" data-send="false"
                                data-width="200px" data-show-faces="true">
                            </div>
                        </div>
                    </div>
                    <div class="text-product-detail">
                        <div style="border-bottom: 1px solid gainsboro; text-align: center; color: #133783;">
                            <asp:Label ID="Label1" Text='<%#Eval("Name") %>' runat="server"></asp:Label>
                        </div>
                        <div>
                            <asp:Label ID="Label2" Text='<%#Eval("Detail") %>' runat="server"></asp:Label>
                        </div>
                        <div style="border-top: 1px solid gainsboro;">
                            <asp:Label ID="Label6" Text="Giá bán:" runat="server" />
                            <asp:Label ID="Label4" Text='<%#Format_Price(Eval("Price").ToString()) %>' runat="server"
                                CssClass="text_red"></asp:Label>
                            <asp:Label ID="lblkhuyenmai" Text='<%#Price(Format_Price(Eval("PriceNew").ToString())) %>'
                                runat="server" CssClass="text_red" />
                            <div id="product-price-vat">
                                <asp:Label ID="Label7" Text='<%#Quantity(Eval("Quantity").ToString()) %>' runat="server" />
                                <div>
                                    <asp:ImageButton ID="btnChon" ImageUrl='/Styles/Images/giohang.PNG' CommandName="Choose"
                                        runat="server" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <br></br>
                <center>
                    <div class="pncomment">                        
                        <div class="fb-comments" data-href="<%#url(Eval("Id").ToString()) %>" data-num-posts="2"
                            data-width="570">
                        </div>
                    </div>
                </center>
                <%--<fb:comments migrated="1" xid="commentbox1" numposts="10" width="550" href="http://apps.facebook.com/e_store/Pages/1/ProductDetail.aspx"
                    class="  fb_iframe_widget">
                    <span style="width: 550px; height: 324px;">
                        <iframe id="f2cdb8154812" name="f8036870412" scrolling="no" style="overflow: hidden;
                            width: 550px; height: 324px; border: none;" class="fb_ltr " src='<%#url(Eval("Id").ToString()) %>'>
                        </iframe>
                    </span>
                </fb:comments>--%>
            </ItemTemplate>
        </asp:DataList>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="footer" runat="Server">
</asp:Content>
